package com.example.jikeyoujikeyou.office_sz.model.base;

public class BaseChat extends BaseModel {

    private String header_image;
    private String name;
    private String seat;
    private String msg;
    private String time;

    public BaseChat(String header_image, String name, String seat, String msg, String time) {
        this.header_image = header_image;
        this.name = name;
        this.seat = seat;
        this.msg = msg;
        this.time = time;
    }

    public BaseChat(String json, String header_image, String name, String seat, String msg, String time) {
        super(json);
        this.header_image = header_image;
        this.name = name;
        this.seat = seat;
        this.msg = msg;
        this.time = time;
    }

    public String getHeader_image() {
        if (null == header_image) {
            return (String) get("header_image");
        }
        return header_image;
    }

    public void setHeader_image(String header_image) {
        this.put("header_image", header_image);
        this.header_image = header_image;
    }

    public String getName() {
        if (null == name) {
            return (String) get("name");
        }
        return name;
    }

    public void setName(String name) {
        this.put("name", name);
        this.name = name;
    }

    public String getSeat() {
        if (null == seat) {
            return (String) get("seat");
        }
        return seat;
    }

    public void setSeat(String seat) {
        this.put("seat", seat);
        this.seat = seat;
    }

    public String getMsg() {
        if (null == msg) {
            return (String) get("msg");
        }
        return msg;
    }

    public void setMsg(String msg) {
        this.put("msg", msg);
        this.msg = msg;
    }

    public String getTime() {
        if (null == time) {
            return (String) get("time");
        }
        return time;
    }

    public void setTime(String time) {
        this.put("time", time);
        this.time = time;
    }

    @Override
    public String toString() {
        return "BaseChat{" +
                "header_image='" + header_image + '\'' +
                ", name='" + name + '\'' +
                ", seat='" + seat + '\'' +
                ", msg='" + msg + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
